import com.simit.config.SpringConfig;
import com.simit.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class UserTransaction {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        UserService service = ctx.getBean(UserService.class);

        String usernameOut = "易力";
        String usernameIn = "赵筱晗";
        int money = 100;
        service.transfer(usernameOut, usernameIn, money);
    }
}
